﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.EquipmentTagVMs
{
    public partial class EquipmentTagBatchVM : BaseBatchVM<EquipmentTag, EquipmentTag_BatchEdit>
    {
        public EquipmentTagBatchVM()
        {
            ListVM = new EquipmentTagListVM();
            LinkedVM = new EquipmentTag_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class EquipmentTag_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._EquipmentTag._Equipment")]
        public Guid? EquipmentId { get; set; }
        [Display(Name = "_Model._EquipmentTag._EquipCode")]
        public string EquipCode { get; set; }
        [Display(Name = "_Model._EquipmentTag._DriverType")]
        public DriverTypeEnum? DriverType { get; set; }
        [Display(Name = "_Model._EquipmentTag._TagName")]
        public string TagName { get; set; }
        [Display(Name = "_Model._EquipmentTag._Address")]
        public string Address { get; set; }
        [Display(Name = "_Model._EquipmentTag._Description")]
        public string Description { get; set; }
        [Display(Name = "_Model._EquipmentTag._TagType")]
        public TagDefineEnum? TagType { get; set; }
        [Display(Name = "_Model._EquipmentTag._DataType")]
        public TagDataTypeEnum? DataType { get; set; }
        [Display(Name = "_Model._EquipmentTag._ScanRate")]
        public int? ScanRate { get; set; }
        [Display(Name = "_Model._EquipmentTag._GroupType")]
        public TagGroupEnum? GroupType { get; set; }
        [Display(Name = "_Model._EquipmentTag._AccessMode")]
        public TagAccessModeEnum? AccessMode { get; set; }
        [Display(Name = "_Model._EquipmentTag._UpLimit")]
        public decimal? UpLimit { get; set; }
        [Display(Name = "_Model._EquipmentTag._LowerLimit")]
        public decimal? LowerLimit { get; set; }
        [Display(Name = "_Model._EquipmentTag._Active")]
        public bool? Active { get; set; }
        [Display(Name = "_Model._EquipmentTag._ActiveLimit")]
        public bool? ActiveLimit { get; set; }
        [Display(Name = "_Model._EquipmentTag._Aux_1")]
        public string Aux_1 { get; set; }
        [Display(Name = "_Model._EquipmentTag._Aux_2")]
        public string Aux_2 { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}